package com.sanxiang.exception;

public class CustomException extends RuntimeException {
    private static final long serialVersionUID = 7072885128559291204L;
    private final Integer code;
    private final String msg;

    public CustomException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
